﻿@model PhotoGallery.Models.VideoInfo
@using PhotoGallery.Views
@{
    ViewBag.Title = "Details";
}

<h2>@Labels.info</h2>
<fieldset>
    <legend>@Labels.video</legend>
    <div style="float:left; width:200px">
        @*<img alt="@Model.Title" src="@Url.Action("Thumbnail", new { file = Model.FullThumbnailName })" />*@
        <img alt="@Model.Title"  src="@Url.Content(Model.UrlThumbnail)" />   
    </div>
    <div>
        <div class="display-label">
             @Html.DisplayNameFor(model => model.Title)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Title)
        </div>
        <div class="display-label">
             @Html.DisplayNameFor(model => model.UploadDate)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.UploadDate)
        </div>

    </div>
</fieldset>
<p>
    @Html.ActionLink(Labels.edit, "Edit", new { id=Model.ID }) |
    @*@Html.ActionLink(Labels.back, "Index")*@
    <a href="@Html.Encode(Request.UrlReferrer.ToString())" >@Labels.back </a>
</p>